// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import 'lib-flexible/flexible.js'
import vuePicturePreview from 'vue-picture-preview'
import preview from 'vue-photo-preview'
import 'vue-photo-preview/dist/skin.css'
import axios from "axios";
import vaxios from "vue-axios";
import wcView from 'wc-view';
import 'wc-view/style.css';

Vue.use(vuePicturePreview);
Vue.use(vaxios,axios);
Vue.use(preview)
Vue.use(wcView);


let baseURL = "";
if ( process.env.NODE_ENV == 'development') {
    baseURL = "/api";
}else{
    baseURL = "http://122.112.229.198:9080";
}
axios.defaults.baseURL = baseURL+"/pdfb4";
Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
